package healthcare.coursework.model;

import java.io.Serializable;
import java.util.List;



/**
 *
 * @author Administrator
 */

public class Facility implements Serializable {

    private static final long serialVersionUID = 1L;
  
    private Long facilityId;
    private String facilityName;
    private String type;
    private FacilityStatus status;
    private String description;
    private boolean isDeleted;
    private List<TestSamples> testSamples;

    public Facility() {
    }

    public Facility(Long facilityId) {
        this.facilityId = facilityId;
    }

    public Facility(String facilityName, FacilityStatus status, String type,String description) {
        this.facilityName = facilityName;
        this.type = type;
        this.status = status;
        this.description = description;
    }


    public Facility(Long facilityId, String facilityName, String type, FacilityStatus status, boolean isDeleted) {
        this.facilityId = facilityId;
        this.facilityName = facilityName;
        this.type = type;
        this.status = status;
        this.isDeleted = isDeleted;
    }

    public Long getFacilityId() {
        return facilityId;
    }

    public void setFacilityId(Long facilityId) {
        this.facilityId = facilityId;
    }

    public String getFacilityName() {
        return facilityName;
    }

    public void setFacilityName(String facilityName) {
        this.facilityName = facilityName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public FacilityStatus getStatus() {
        return status;
    }

    public void setStatus(FacilityStatus status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public List<TestSamples> getTestSamples() {
        return testSamples;
    }

    public void setTestSamples(List<TestSamples> testSamples) {
        this.testSamples = testSamples;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (facilityId != null ? facilityId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Facility)) {
            return false;
        }
        Facility other = (Facility) object;
        if ((this.facilityId == null && other.facilityId != null) || (this.facilityId != null && !this.facilityId.equals(other.facilityId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "healthcare.coursework.model.Facility[facilityId=" + facilityId + "]";
    }
}
